package com.cloud.client;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @Auther:chenye
 * @Data:2018/10/19
 * @Description:
 */
@Component
public class MyListener implements ApplicationListener<MyApplicationEvent> {
    @Override
    public void onApplicationEvent(MyApplicationEvent event) {
        if(event.getSource()!=null){
            System.err.println(event.getSource());
        }
    }
}
